#!/bin/ash
#
# rc Script for busybox inetd.
# (c) dangbinghoo@gmail.com , playpenguin.org
#

. /etc/conf.d/httpd

start()
{	
    echo " * Starting inetd..."
    inetd /etc/inetd.conf
}

restart()
{
	stop
	start
}

stop()
{
	pkill inetd
}

#
# main
#

case "$1" in
	"start")
		start;;
	"stop")	
		stop;;
	"restart")
		restart;;
	*)
		echo "Usage: $0 start|stop|restart"
		exit 0
esac

